package com.example.voice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 语音处理任务实体类
 * @author crp
 * @since 2025-01-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("voice_processing_tasks")
public class VoiceProcessingTask {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    @TableField("task_id")
    private String taskId;
    
    @TableField("user_id")
    private Long userId;
    
    @TableField("character_id")
    private Long characterId;
    
    @TableField("conversation_id")
    private Long conversationId;
    
    @TableField("status")
    private String status;
    
    @TableField("progress")
    private Integer progress;
    
    @TableField("current_step")
    private String currentStep;
    
    @TableField("audio_data")
    private String audioData;
    
    @TableField("audio_format")
    private String audioFormat;
    
    @TableField("language")
    private String language;
    
    @TableField("recognized_text")
    private String recognizedText;
    
    @TableField("ai_reply")
    private String aiReply;
    
    @TableField("voice_url")
    private String voiceUrl;
    
    @TableField("error_message")
    private String errorMessage;
    
    @TableField("created_at")
    private LocalDateTime createdAt;
    
    @TableField("updated_at")
    private LocalDateTime updatedAt;
}
